#ifndef OPTION_H
#define OPTION_H

#include <QWidget>
#include <QPushButton>
#include <QVector>
#include <QMap>
#include "Narration/narrationnode.h"
#include "eventcenter.h"
#include "UIEditor/mywidget.h"
#include "Linker/linker.h"
namespace Ui {
class Option;
}

class Option : public MyWidget
{
    Q_OBJECT

public:
    explicit Option(QWidget *parent = nullptr);
    ~Option();
    void Refresh(int begin = 0);
    void ChangeBtnText(QString text,int index);
    void ChangeLinker(Linker* linker,int index);
private:
    Ui::Option *ui;
    void Init();
    QVector<MyButton*> btns;
    QVector<Linker*> linkers;
};

#endif // OPTION_H
